/**
 * Created By wifi_uncle on 2019/11/6
 */

import API from '../api'
import request from "./request";
export default {
  /**
   * 获取推荐人列表
   * @param premisesId
   * @param _this
   * @returns {PromiseLike<any> | Promise<any> | *}
   */
  getRecommendList (premisesId, _this) {
    let url = API.RECOMMEND.RECOMMEND_LIST
    const errorMsg = "获取推荐人列表失败"
    let params = {
      id: premisesId
    }
    return request({
      _this,
      errorMsg,
      body: { params },
      url,
      method: 'post'
    }).then(rsp => rsp.resData.list)
  },
}
